package com.rp.system.user.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.rp.system.user.entity.SysUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.rp.system.user.model.UpdatePassWordModel;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author vicente
 * @since 2020-11-23
 */
public interface SysUserService extends IService<SysUser> {

    /**
     * @Author HuJingYu
     * @Date 10:52 2020-12-19
     * @Description 根据用户名查询用户的 id username realname
     * @param username
     * @return SysUser
     */
    SysUser findSysUserByUsername(String username);

    public SysUser showUser(@Param("username") String username);


    public IPage<SysUser> selectMyPage(IPage<SysUser> page, Wrapper<SysUser> queryWrapper);

    String selectClientSecret(@Param("clientId") String clientId);

    Boolean updateClientSecret(@Param("username") String username,@Param("clientSecret") String clientSecret);

    /**
     * @Author HuJingYu
     * @Date 14:35 2021-05-19
     * @Description 修改密码
     * @param updatePassWordModel
     * @return java.lang.Boolean
     */
    Boolean updatePassWord(UpdatePassWordModel updatePassWordModel);
}
